package com.corpgovernment.job.batchimport.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author ldma
 * @date 2024/1/9
 */
@Getter
@AllArgsConstructor
public enum BatchImportStatusEnum {

    SUCCESS("完成"),
    FAIL("失败");

    private final String name;

    public static String getNameByEnumName(String enumName) {
        for (BatchImportStatusEnum e : BatchImportStatusEnum.values()) {
            if (e.name().equals(enumName)) {
                return e.getName();
            }
        }
        return "";
    }

}
